import request from '@/utils/request'

// 查询诊断列表
export function listDiagnose(query) {
  return request({
    url: '/system/diagnose/list',
    method: 'get',
    params: query
  })
}

// 查询诊断详细
export function getDiagnose(id) {
  return request({
    url: '/system/diagnose/' + id,
    method: 'get'
  })
}

// 新增诊断
export function addDiagnose(data) {
  return request({
    url: '/system/diagnose',
    method: 'post',
    data: data
  })
}

// 修改诊断
export function updateDiagnose(data) {
  return request({
    url: '/system/diagnose',
    method: 'put',
    data: data
  })
}

// 删除诊断
export function delDiagnose(id) {
  return request({
    url: '/system/diagnose/' + id,
    method: 'delete'
  })
}
